package com.itheima;

import com.itheima.controller.BookController;
import com.itheima.pojo.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class);
        BookController bean = context.getBean(BookController.class);
        System.out.println(bean);
        System.out.println(context.getBean(User.class));
    }
}
